package com.xxx.sso.util;

import java.text.ParseException;
import java.text.SimpleDateFormat;

/**
 * 日期处理工具类
 * @author caiwl
 * @date 2020/5/13 17:52
 */
public class DateUtil {
    public static void main(String[] args) {
        SimpleDateFormat sdf = new SimpleDateFormat("mm:ss");
        try {
            System.out.println(sdf.parse("08:00").before(sdf.parse("17:42")));
        } catch (ParseException e) {
            e.printStackTrace();
        }
    }
}
